<div>
    <div class="meta-section">
        <div class="meta-section-header">
            <h4 class="meta-section-header-title">用户详情</h4>
        </div>
        <div class="meta-section-container">
            <ul class="meta-double-version-nav nav-tabs">
                <li class="uib-tab" ng-class="{'active': spaceStatus == 0}"><a ng-click="spaceChange(0)">用户信息</a></li>
                <li class="uib-tab" ng-class="{'active': spaceStatus == 1}"><a ng-click="spaceChange(1)">商务基金</a></li>
                <li class="uib-tab" ng-class="{'active': spaceStatus == 2}"><a ng-click="spaceChange(2)">用户收藏</a></li>
                <li class="clear-float"></li>
            </ul>
            <div class="meta-secondary-section" ng-show="spaceStatus == 0">
                <div class="meta-secondary-section-header">
                    <i class="fa fa-user"></i><span>概要信息</span>
                    <button class="btn btn-success meta-btn"
                            ng-click="openModel('','views/permission/modal/avater.html', 'AvaterModelCtrl', {id: editCtrl.data.id, avater: editCtrl.data.avatar})">
                        修改头像
                    </button>
                </div>
                <div class="meta-secondary-section-content">
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">姓名: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input class="form-control" type="text" ng-model="editCtrl.data.name" name="name"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">手机: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input class="form-control" type="tel" ng-model="editCtrl.data.mobile" name="mobile"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">联系电话: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input class="form-control" type="text" ng-model="editCtrl.data.contactTelephone"
                                       name="contactTelephone"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">邮箱: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input class="form-control" type="email" ng-model="editCtrl.data.email" name="email"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">机构: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input class="form-control" type="text"
                                       ng-model="editCtrl.data.partnerInfo.organization" name="email"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">部门: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input class="form-control" type="text" ng-model="editCtrl.data.partnerInfo.department"
                                       name="email"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">职务: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <input class="form-control" type="text" ng-model="editCtrl.data.partnerInfo.post"
                                       name="email"/>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">渠道领域: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-checkbox">
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area"
                                           ng-model="editCtrl.data.area_choice.area01"
                                           ng-checked="editCtrl.data.area_choice.area01"> 生农医药
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area"
                                           ng-model="editCtrl.data.area_choice.area02"
                                           ng-checked="editCtrl.data.area_choice.area02"> 化学化工
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area"
                                           ng-model="editCtrl.data.area_choice.area03"
                                           ng-checked="editCtrl.data.area_choice.area03"> 能源环保
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area"
                                           ng-model="editCtrl.data.area_choice.area04"
                                           ng-checked="editCtrl.data.area_choice.area04"> 机械电子
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area"
                                           ng-model="editCtrl.data.area_choice.area05"
                                           ng-checked="editCtrl.data.area_choice.area05"> 材料科学
                                </label>
                                <label class="checkbox-inline">
                                    <input ng-disabled="isInit" type="checkbox" name="area"
                                           ng-model="editCtrl.data.area_choice.area06"
                                           ng-checked="editCtrl.data.area_choice.area06"> 其他
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">常驻地: </span>

                        <div class="meta-input-section-control">
                            <div class="meta-input">
                                <ui-select multiple ng-model="editCtrl.data.partnerInfo.camp" theme="bootstrap">
                                    <ui-select-match class="ui-select-match" placeholder="选择省市自治区, 可多选">{{$item}}
                                    </ui-select-match>
                                    <ui-select-choices class="ui-select-choices"
                                                       repeat="element in metaConstants.provinces | filter:$select.search"
                                                       position='down'>
                                        {{element}}
                                    </ui-select-choices>
                                </ui-select>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">项目经验: </span>

                        <div class="meta-block-input-section-control">
                            <div class="meta-rich">
                                <textarea class="form-control" ng-model="editCtrl.data.partnerInfo.projectExperience"
                                          froala="CONFIG.froalaOptions"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="meta-input-section">
                        <span class="meta-input-section-title">上传简历: </span>

                        <div class="meta-block-input-section-control">
                            <div class="meta-rich">
                                <span style="line-height:33px;">{{editCtrl.data.partnerInfo.resume.name==null?'暂无':editCtrl.data.partnerInfo.resume.name}}</span>
                                <meta-single-qnuploader uploader-config="CONFIG.qnuploader"
                                                        uploader-data="editCtrl.data.partnerInfo.resume"></meta-single-qnuploader>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="meta-submit">
                    <div class="meta-large-double-buttons">
                        <button class="btn btn-success" ng-click="save()">保&nbsp;&nbsp;存</button>
                        <button class="btn btn-warning" ng-click="reset()">重&nbsp;&nbsp;置</button>
                    </div>
                </div>
            </div>
            <div class="meta-secondary-section meta-last" ng-show="spaceStatus == 1">
                <div class="meta-secondary-section-header">
                    <i class="fa fa-money"></i><span>商务基金（当前余额：{{editMoneyCtrl.data[0].balance==null?'0':editMoneyCtrl.data[0].balance}}元）</span>
                </div>
                <div class="meta-secondary-section-content">
                    <ul class="meta-money">
                        <li ng-repeat="element in editMoneyCtrl.data track by $index">
                            <span class='money'>{{element.float}}</span>
                            <span class='name'>{{element.operator.name}}</span>
                            <span class='cause'>{{element.cause}}</span>
                            <span class='time'>{{element.createdAt | date:"yyyy-MM-dd"}}</span>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="meta-secondary-section meta-last" ng-show="spaceStatus == 2">
                <div class="meta-secondary-section-header">
                    <i class="fa fa-bookmark"></i><span>用户收藏（{{editCollectCtrl.data.length}}条收藏记录）</span>
                </div>
                <div class="meta-secondary-section-content">
                    <ul class="meta-money">
                        <li ng-repeat="element in editCollectCtrl.data track by $index">
                          <span class='tag' ng-class="{
            					          		'meta-tag-demand': element.targetType=='Demand',
            					          		'meta-tag-tech': element.targetType=='Technology',
            					          		'meta-tag-talent': element.targetType=='Talent'
                                  }">{{element.targetType=='Demand'?'需求':(element.targetType=='Technology'?'方案':'人才')}}</span>
                            <span>{{element.targetType=='Talent'?element.target.user.name:element.target.title}}</span>
                            <span class='time'>{{element.createdAt | date:"yyyy-MM-dd"}}</span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
